.class public Lcom/instagram/android/feed/comments/ui/c;
.super Ljava/lang/Object;
.source "CommentRowViewBinder.java"


# instance fields
.field private final a:Lcom/instagram/android/feed/comments/ui/i;


# direct methods
.method public constructor <init>(Lcom/instagram/android/feed/comments/ui/i;)V
    .locals 0
    .parameter

    .prologue
    .line 25
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 26
    iput-object p1, p0, Lcom/instagram/android/feed/comments/ui/c;->a:Lcom/instagram/android/feed/comments/ui/i;

    .line 27
    return-void
.end method

.method public static a(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 96
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->row_comment:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 97
    new-instance v2, Lcom/instagram/android/feed/comments/ui/j;

    invoke-direct {v2}, Lcom/instagram/android/feed/comments/ui/j;-><init>()V

    .line 98
    sget v0, Lcom/facebook/aw;->row_comment_imageview:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/CircularImageView;

    iput-object v0, v2, Lcom/instagram/android/feed/comments/ui/j;->a:Lcom/instagram/android/mediacache/CircularImageView;

    .line 99
    sget v0, Lcom/facebook/aw;->row_comment_report:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v2, Lcom/instagram/android/feed/comments/ui/j;->b:Landroid/widget/ImageView;

    .line 100
    sget v0, Lcom/facebook/aw;->row_comment_textview_comment:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/feed/comments/ui/j;->c:Landroid/widget/TextView;

    .line 101
    sget v0, Lcom/facebook/aw;->row_comment_textview_time_ago:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/feed/comments/ui/j;->d:Landroid/widget/TextView;

    .line 102
    sget v0, Lcom/facebook/aw;->row_comment_button_delete:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v2, Lcom/instagram/android/feed/comments/ui/j;->e:Landroid/view/View;

    .line 103
    sget v0, Lcom/facebook/aw;->row_comment_button_action:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, v2, Lcom/instagram/android/feed/comments/ui/j;->f:Landroid/widget/Button;

    .line 104
    sget v0, Lcom/facebook/aw;->row_comment_progressbar:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, v2, Lcom/instagram/android/feed/comments/ui/j;->g:Landroid/widget/ProgressBar;

    .line 105
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 106
    return-object v1
.end method

.method static synthetic a(Lcom/instagram/android/feed/comments/ui/c;)Lcom/instagram/android/feed/comments/ui/i;
    .locals 1
    .parameter

    .prologue
    .line 21
    iget-object v0, p0, Lcom/instagram/android/feed/comments/ui/c;->a:Lcom/instagram/android/feed/comments/ui/i;

    return-object v0
.end method


# virtual methods
.method public a(Landroid/content/Context;Lcom/instagram/android/feed/comments/ui/j;Lcom/instagram/j/b;Lcom/instagram/android/feed/comments/ui/k;)V
    .locals 5
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v3, 0x1

    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 35
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->a:Lcom/instagram/android/mediacache/CircularImageView;

    invoke-virtual {p3}, Lcom/instagram/j/b;->f()Lcom/instagram/android/model/b/e;

    move-result-object v4

    invoke-virtual {v4}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Lcom/instagram/android/mediacache/CircularImageView;->setUrl(Ljava/lang/String;)V

    .line 36
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->a:Lcom/instagram/android/mediacache/CircularImageView;

    new-instance v4, Lcom/instagram/android/feed/comments/ui/d;

    invoke-direct {v4, p0, p3}, Lcom/instagram/android/feed/comments/ui/d;-><init>(Lcom/instagram/android/feed/comments/ui/c;Lcom/instagram/j/b;)V

    invoke-virtual {v0, v4}, Lcom/instagram/android/mediacache/CircularImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 43
    iget-object v4, p2, Lcom/instagram/android/feed/comments/ui/j;->b:Landroid/widget/ImageView;

    sget-object v0, Lcom/instagram/android/feed/comments/ui/k;->b:Lcom/instagram/android/feed/comments/ui/k;

    if-ne p4, v0, :cond_1

    move v0, v1

    :goto_0
    invoke-virtual {v4, v0}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 44
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->b:Landroid/widget/ImageView;

    new-instance v4, Lcom/instagram/android/feed/comments/ui/e;

    invoke-direct {v4, p0, p3}, Lcom/instagram/android/feed/comments/ui/e;-><init>(Lcom/instagram/android/feed/comments/ui/c;Lcom/instagram/j/b;)V

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 51
    sget-object v0, Lcom/instagram/android/feed/comments/ui/k;->c:Lcom/instagram/android/feed/comments/ui/k;

    if-eq p4, v0, :cond_0

    sget-object v0, Lcom/instagram/android/feed/comments/ui/k;->d:Lcom/instagram/android/feed/comments/ui/k;

    if-ne p4, v0, :cond_2

    :cond_0
    move v0, v3

    .line 53
    :goto_1
    iget-object v4, p2, Lcom/instagram/android/feed/comments/ui/j;->e:Landroid/view/View;

    if-eqz v0, :cond_3

    move v0, v1

    :goto_2
    invoke-virtual {v4, v0}, Landroid/view/View;->setVisibility(I)V

    .line 54
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->e:Landroid/view/View;

    sget-object v4, Lcom/instagram/android/feed/comments/ui/k;->d:Lcom/instagram/android/feed/comments/ui/k;

    if-ne p4, v4, :cond_4

    :goto_3
    invoke-virtual {v0, v3}, Landroid/view/View;->setSelected(Z)V

    .line 55
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->e:Landroid/view/View;

    new-instance v3, Lcom/instagram/android/feed/comments/ui/f;

    invoke-direct {v3, p0, p3}, Lcom/instagram/android/feed/comments/ui/f;-><init>(Lcom/instagram/android/feed/comments/ui/c;Lcom/instagram/j/b;)V

    invoke-virtual {v0, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 62
    sget-object v0, Lcom/instagram/android/feed/comments/ui/k;->d:Lcom/instagram/android/feed/comments/ui/k;

    if-ne p4, v0, :cond_5

    .line 63
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->f:Landroid/widget/Button;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 64
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->f:Landroid/widget/Button;

    sget v3, Lcom/facebook/ba;->delete:I

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setText(I)V

    .line 65
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->f:Landroid/widget/Button;

    new-instance v3, Lcom/instagram/android/feed/comments/ui/g;

    invoke-direct {v3, p0, p3}, Lcom/instagram/android/feed/comments/ui/g;-><init>(Lcom/instagram/android/feed/comments/ui/c;Lcom/instagram/j/b;)V

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 84
    :goto_4
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->c:Landroid/widget/TextView;

    invoke-static {}, Lcom/instagram/j/g;->a()Lcom/instagram/j/g;

    move-result-object v3

    invoke-virtual {v3, p3}, Lcom/instagram/j/g;->a(Lcom/instagram/j/b;)Ljava/lang/CharSequence;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 85
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->c:Landroid/widget/TextView;

    new-instance v3, Landroid/text/method/LinkMovementMethod;

    invoke-direct {v3}, Landroid/text/method/LinkMovementMethod;-><init>()V

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V

    .line 86
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->d:Landroid/widget/TextView;

    invoke-virtual {p3, p1}, Lcom/instagram/j/b;->a(Landroid/content/Context;)Ljava/lang/CharSequence;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 88
    invoke-virtual {p3}, Lcom/instagram/j/b;->g()Lcom/instagram/j/d;

    move-result-object v0

    sget-object v3, Lcom/instagram/j/d;->c:Lcom/instagram/j/d;

    if-ne v0, v3, :cond_7

    .line 89
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->g:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 93
    :goto_5
    return-void

    :cond_1
    move v0, v2

    .line 43
    goto :goto_0

    :cond_2
    move v0, v1

    .line 51
    goto :goto_1

    :cond_3
    move v0, v2

    .line 53
    goto :goto_2

    :cond_4
    move v3, v1

    .line 54
    goto :goto_3

    .line 71
    :cond_5
    invoke-virtual {p3}, Lcom/instagram/j/b;->g()Lcom/instagram/j/d;

    move-result-object v0

    sget-object v3, Lcom/instagram/j/d;->b:Lcom/instagram/j/d;

    if-ne v0, v3, :cond_6

    .line 72
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->f:Landroid/widget/Button;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 73
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->f:Landroid/widget/Button;

    sget v3, Lcom/facebook/ba;->failed:I

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setText(I)V

    .line 74
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->f:Landroid/widget/Button;

    new-instance v3, Lcom/instagram/android/feed/comments/ui/h;

    invoke-direct {v3, p0, p3}, Lcom/instagram/android/feed/comments/ui/h;-><init>(Lcom/instagram/android/feed/comments/ui/c;Lcom/instagram/j/b;)V

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_4

    .line 81
    :cond_6
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->f:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    goto :goto_4

    .line 91
    :cond_7
    iget-object v0, p2, Lcom/instagram/android/feed/comments/ui/j;->g:Landroid/widget/ProgressBar;

    invoke-virtual {v0, v2}, Landroid/widget/ProgressBar;->setVisibility(I)V

    goto :goto_5
.end method
